home *** CD-ROM | disk | FTP | other *** search
/ The Original Shareware 1.1 / The Original Shareware (WeMake CDs)(Volume 1.1)(CDs, Inc)(1993).iso / 16 / qextra.zip / QPRINTER.ART < prev    next >
Text File  |  1988-05-27  |  34KB  |  1,096 lines

  1.  
  2.  
  3.  
  4. PRINT CODE MACROS FOR QEDIT 2.03
  5. ================================
  6. by Gene Catalano (June 1988)
  7.  
  8.  
  9.  
  10.  
  11. TABLE OF CONTENTS
  12.  
  13. PART I:       INTRODUCTION:  WHAT YOU NEED TO KNOW        Pg. 2
  14. PART II:      SETTING UP MACROS AND PRINT CODES           Pg. 4
  15. PART III:     HOW TO CREATE PRINT CODE MACROS             Pg. 6
  16. PART IV:      EDIT/CREATE YOUR PRINTER MACROS             Pg. 11
  17. PART V:       SAVING YOUR MACROS                          Pg. 21
  18. PART VI:      FINAL REMARKS                               Pg. 22
  19.  
  20. ACCESSORY FILES (if downloaded, part of my package, QEXTRA.ARC):
  21.  
  22.      PRINT.MAC
  23.      TEST.PRN
  24.      CLEAR.MAC
  25.  
  26. (CLEAR.MAC is a "dummy" macro file...that is, its contents are
  27. "zilch." Actually, it contains a macro command for ALT-0, which
  28. is to move cursor right 5 spaces, then left 5 spaces.  Whenever
  29. you want to clear all current macro keys, just load CLEAR.MAC.)
  30.  
  31. If you acquired this article by downloading my package,
  32. QEXTRA.ARC, you should have the following 12 files: QASCII.ART,
  33. QCONFIG.ART, QFORMAT.ART, Q-L-FORM.ART, QPRINTER.ART, ASCII.MAC,
  34. CLEAR.MAC, FORMAT.MAC, Q-L-FORM.MAC, L-FORM.MAC, PRINT.MAC,
  35. README.1ST, SAMPLE.BOX, TEMPLATE, and TEST.PRN. If you are
  36. reading this article through a bulletin board service, without
  37. the benefit of having downloaded the entire package (QEXTRA.ARC),
  38. you can still use 100% of the information described herein.  (The
  39. files ending with ".ART" are articles, and all other files are
  40. accessories to the articles.)
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48. PRINTER MACROS FOR QEDIT (cont'd)                         Page 2
  49.  
  50.  
  51.  
  52.  
  53. *****************************************************************
  54.  
  55. PART I:  INTRODUCTION:  WHAT YOU NEED TO KNOW
  56. =============================================
  57.  
  58. As an alternative to using macros for print codes, you can "block
  59. copy" the codes from my TEMPLATE file.
  60.  
  61. IMPORTANT:  Please note that the instructions herein are for
  62. QEDIT version 2.03, and depend on QEDIT's "macro creation" and
  63. "literal" features. These instructions may or may not be
  64. applicable to future versions, depending on the author's upgrade
  65. approach.
  66.  
  67. Likewise, the instructions are for dot matrix printers.  If you
  68. have a daisy wheel or thimble printer, and are savvy (or
  69. persistant) enough, you can probably adapt my instructions to
  70. work for your printer.  In any case, you do need your printer's
  71. manual to create printer code macros.
  72.  
  73. You must already be acquainted with QEDIT key configuration and
  74. macro creation, in order to make use of this information.
  75.  
  76. WARNING:  The Surgeon General has determined that playing with
  77. printer controls may be hazardous to your sanity. Printers widely
  78. vary in the coding of their many features. The code that
  79. activates italics in my printer may not be the code that
  80. activates italics in yours.  (If your printer is "Epson
  81. compatible," like mine, then the odds are in your favor.) I have
  82. simplified my instructions simianly as possible, but proceed at
  83. your own risk.
  84.  
  85. The instructions in this article will allow you to imbed
  86. additional print controls into your QEDIT text, which (together
  87. with the "format" macros described in FORMAT.ART) will turn the
  88. QEDIT ASCII editor into a full-blown word processor.
  89.  
  90. Macros for non-print word-processing features (top margin, bottom
  91. margin, paragraph reformat, page break, page numbering, headers,
  92. footers, automatic margins, etc.) are covered in my file
  93. FORMAT.ART.
  94.  
  95. Macros for extended code ASCII characters are discussed in my
  96. file ASCII.ART.
  97.  
  98. In case you are curious, this text has been formatted using my
  99. original macros from FORMAT.MAC.  Text was configured for the
  100. [ALT]8 macro (Set Left/Right Margins at 1" for 10 cpi or
  101. proportional).  So before printing, set printer for that macro.
  102.  
  103. Because printers vary widely with which codes they use for fonts
  104. and pitches, I left out any print codes...so make sure your
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112. PRINTER MACROS FOR QEDIT (cont'd)                         Page 3
  113.  
  114.  
  115.  
  116.  
  117. printer is set for 10 cpi (pica).  You can certainly dress up
  118. this article by using print codes described in my file
  119. PRINTER.ART!   (If you don't use the "set left/right margins at 1
  120. inch" macro, it will print out just as you see on screen:  left
  121. margin at 1, right margin at 65.)
  122.  
  123. Not only will you derive even greater pleasure from using QEDIT,
  124. by incorporating sophisticated printer macros, but you will
  125. understand more about your printer...which will give you greater
  126. power with any other ASCII editor or word processor you might
  127. use.  And, should you ever decide to program, you will have an
  128. educated acquaintance with programming print codes (which are
  129. often the trickiest to learn).
  130.  
  131. The print codes appear on screen rather cryptically, as they did
  132. in the early age of word processors.  QEDIT will treat these
  133. codes like regular text, so if you want to keep a word from
  134. wrapping onto the next line as a result of these "code"
  135. characters, you will have to make the adjustment manually.
  136. (Funny how, in this computer age, "manual" means pushing buttons.
  137. I never thought I'd see the day!)
  138.  
  139. Also, these imbedded print commands will not alter a text's
  140. screen appearance, but will affect the printout...again, just
  141. like the early word processors.
  142.  
  143. So, if these small inconveniences are not outweighed by your
  144. desire to "word-processorize" QEDIT, and if you want to gain an
  145. understanding of those "mysterious" printer contols, and/or are a
  146. QEDIT fanatic like myself, read on!
  147.  
  148.  
  149.  
  150.  
  151.  
  152.  
  153.  
  154. PRINTER MACROS FOR QEDIT (cont'd)                         Page 4
  155.  
  156.  
  157.  
  158.  
  159. *****************************************************************
  160.  
  161. PART II:  SETTING UP MACROS AND PRINT CODES
  162. -------------------------------------------
  163.  
  164. MACRO     PRINT MODE              ESC CODE "on"   ESC CODE "off"
  165. =====     ===============         ============    ==============
  166.  
  167. [ALT]1    LETTER QUALITY          [ESC]x1         [ESC]x0
  168. [ALT]2    DOUBLE STRIKE           [ESC]G          [ESC]H
  169. [ALT]3    ENHANCED                [ESC]E          [ESC]F
  170. [ALT]4    ITALICS                 [ESC]4          [ESC]5
  171. [ALT]5    UNDERSCORE              [ESC]-1         [ESC]-0
  172. [ALT]6    SUPERSCRIPT             [ESC]S0         [ESC]T
  173. [ALT]7    SUBSCRIPT               [ESC]S1         [ESC]T
  174. [ALT]8    CENTER JUSTIFICATION    [ESC]a1         [ESC]a0
  175. [ALT]9    FULL JUSTIFICATION      [ESC]a3         [ESC]a0
  176. [ALT]0    PROPORTIONAL SPACING    [ESC]p1         [ESC]p0
  177. [ALT]Q    12 CPI                  [ESC]M          [ESC]P
  178. [ALT]E    SKIP PERFORATION        [ESC]Nn         [ESC]O
  179. [ALT]R    PRINT CARRIAGE RETURN   [CTRL]M[CTRL]J
  180. [ALT]T    PRINTER PAGE EJECT      [CTRL]L
  181. [ALT]Y    FORM FEED               [CTRL]L
  182.  
  183.  
  184. NOTE:  The lowercase "n" in "[ESC]Nn" (for SKIP OVER PERFORATION)
  185. is to be replaced with the number of lines you want the printer
  186. to skip over the perforation between form feed pages.
  187.  
  188. Above is a list of QEDIT 2.03 macros for the most commonly used
  189. printer Controls, with their escape codes.  I use macros [ALT]0
  190. through [ALT]9 and [ALT] -Q,-W,-E,-R,-T,-Y, but you may choose
  191. any macro keystrokes (in which case edit the "MACRO" column).
  192. Please note that QEDIT does not allow use of "two_key" commands
  193. for macros, which are two keystrokes preceded by the [ALT],
  194. [CTRL] or [SHIFT] key.  Also, note that QEDIT does not allow
  195. macro creation of keys already configured through QCONFIG.EXE.
  196.  
  197. By editing the list above to suit your requirements, you may use
  198. it as a reference for creating the macro keys.
  199.  
  200. I have used the same "family" of macros (ALT-0 through ALT-9 and
  201. [ALT] -Q,-W,-E,-R,-T,-Y) for my "format macros," "legal format
  202. macros," "printer macros," and "ascii macros," discussed in the
  203. files QFORMAT.ART, Q-L-FORM.ART, QPRINTER.ART and QASCII.ART. If
  204. you do likewise, you will have to switch among my four macro
  205. files, by using QEDIT's "<macro_read>" command.
  206.  
  207. Remember:  in order to reserve the "macro family" ALT-0 through
  208. ALT-9, and ALT -Q,-W,-E,-R,-T,-Y (which is each letter
  209. Q,W,E,R,T,Y preceded by [ALT]), for your own macro files, you
  210.  
  211.  
  212.  
  213.  
  214.  
  215.  
  216.  
  217. PRINTER MACROS FOR QEDIT (cont'd)                         Page 5
  218.  
  219.  
  220.  
  221.  
  222. must not use any of these keys in your configuration file (which
  223. is set up by running QCONFIG.EXE). This applies to any key
  224. combinations you want to use for macros.
  225.  
  226. The escape codes are for the (Epson compatible) dot matrix NEC
  227. Pinwriter 2200.  Refer to the programmer's section of your
  228. printer manual to find out which codes match, and which
  229. don't...changing the ones which don't.  (To change them, you only
  230. need edit the one or two characters after "[ESC]" in the two
  231. ESCAPE CODE columns.)  This will be your reference list for
  232. creating printer macros (read on).  FORM FEED printer code
  233. "[CTRL]L" and CARRIAGE RETURN/LINEFEED "[CTRL]M[CTRL]J" is
  234. universal to all IBM ASCII compatible systems, and need no
  235. change.
  236.  
  237. Remember that all but two print modes listed have an "off" code
  238. (to "disable" or "stop" a print control) as well as an "on" code.
  239. (Exceptions: CENTER JUSTIFICATION, which is turned "off" by a
  240. carriage return, and FORM FEED and CARRIAGE RETURN/LINEFEED,
  241. which are really [CTRL] codes.)  Therefore, any adjustments to
  242. make this list match your own printer codes must include their
  243. equivalent "off" codes.
  244.                                      
  245. NOTES:  Two codes are turned "off" by returning to the printer's
  246. "default." LETTER QUALITY is turned "off" by returning it to
  247. DRAFT mode.  FULL JUSTIFICATION is turned "off" by returning it
  248. to LEFT JUSTIFICATION.
  249.  
  250. Print mode terms may vary from manual to manual.  LETTER QUALITY
  251. may also be referred to as "LQ," "NEAR LETTER QUALITY," or "NLQ."
  252. DOUBLE STRIKE and ENHANCED are two forms of "BOLD" print.
  253. "CENTER JUSTIFICATION" may also be referred to as "CENTER LINE"
  254. or "CENTER TEXT". FULL JUSTIFICATION may also be referred to as
  255. "JUSTIFY TEXT," "JUSTIFY RIGHT MARGIN," or some variation
  256. thereof.
  257.  
  258.  
  259.  
  260.  
  261.  
  262.  
  263.  
  264. PRINTER MACROS FOR QEDIT (cont'd)                         Page 6
  265.  
  266.  
  267.  
  268.  
  269. *****************************************************************
  270.  
  271. PART III:  HOW TO CREATE PRINT CODE MACROS
  272. ------------------------------------------
  273.  
  274. Although there are two ways to create QEDIT macros--adding them
  275. to the key configuration file, or creating a special macro
  276. file--I prefer the second. This way, macros ALT-0 through ALT-9,
  277. and ALT -Q,-E,-R,-T,-Y can be re-used for other macro files.
  278. (The basic idea here, is to reserve a "family" of keys for your
  279. macro files...because any keys used in your configuration file
  280. are not available for macro recording.)
  281.  
  282. The full macro "family" I reserve for macro files is [ALT]-0
  283. through [ALT]-9, and [ALT] -Q,-W,-E,-R,-T,-Y.
  284.  
  285. If the list of all printer commands in PART II matches those of
  286. your own printer, and you like my macro assignments [ALT]0
  287. through [ALT]9, and [ALT] -Q,-E,-R,-T,-Y, you are ready to go!
  288. Once you are in QEDIT, just load my macro file PRINT.MAC with
  289. the "macro_read" command.
  290.  
  291. If some of the codes match, while others don't, and you like my
  292. macro assignments, just load the printer macro file PRINT.MAC
  293. while in QEDIT, and re-create the incompatible macros to work for
  294. your printer.
  295.  
  296. (If you didn't acquire this article by downloading it as part of
  297. my QEXTRA.ARC package, then you might not have accessory files
  298. ASCII.MAC, CLEAR.MAC, FORMAT.MAC, L-FORM.MAC, PRINT.MAC,
  299. SAMPLE.BOX, TEST.PRN, or TEMPLATE.)
  300.  
  301. Another way to find out if all or some of the printer code
  302. commands for my printer are compatible with your printer, is to
  303. just print out my accompanying file TEST.PRN, while in the QEDIT
  304. environment.
  305.  
  306. ---------------
  307. You can create a macro to automatically load PRINT.MAC.  In the
  308. following key configuration, I selected ALT-P ("@p") for the
  309. macro, but you may choose another macro key.  This example is to
  310. be included in your configuration file, which should then be
  311. imbedded in your QEDIT program by running QCONFIG.EXE:
  312.  
  313. @p   macro_begin escape 'm' 'r' 'PRINT.MAC' return
  314.  
  315. The above macro configuration assumes that PRINT.MAC resides in
  316. the same directory where you run QEDIT.  If not, add the drive
  317. and/or subdirectory. For example, if PRINT.MAC resides in drive
  318. C:, subdirectory "\MACRO", you would change 'PRINT.MAC' to
  319. 'C:\MACRO\PRINT.MAC'.  (Of course, you may prefer a file name
  320. other than PRINT.MAC, in which case, change it.)
  321.  
  322.  
  323.  
  324.  
  325.  
  326.  
  327.  
  328. PRINTER MACROS FOR QEDIT (cont'd)                         Page 7
  329.  
  330.  
  331.  
  332.  
  333. NOTES: The original QEDIT configuration file, QCONFIG.DAT, does
  334. not include the "macro_read" and "macro_write" commands.
  335. ("Macro_record" is CTRL-M.)  Of course, you can just use the
  336. pop-up menu by hitting "[ESC]MM" to begin the macro, and hitting
  337. "[ESC]MM" a second time to end the macro.
  338.  
  339. To include "macro_read" and "macro_write" as key configurations,
  340. I suggest first changing the original "macro_record" from CTRL-M
  341. to CTRL-M-C ("C" standing for macro "create") then using CTRL-M-L
  342. for "macro_read" ("L" standing for macro "load"), and CTRL-M-S
  343. for "macro_write" ("S" standing for macro "save"). Delete the
  344. original "macro_record" line in your configuration file, and
  345. replace it with these three lines:
  346.  
  347. ^m_c      macro_record             * macro "create"
  348. ^m_l      macro_read               * macro "load"
  349. ^m_s      macro_write              * macro "save"
  350.  
  351. If you prefer to use macros other than the CTRL-M two-key
  352. commands, change them now.  Either way, you can just copy/paste
  353. the above three command lines into your configuration file.  Then
  354. run QCONFIG.EXE to reconfigure your keys.
  355.  
  356. If you are using the WordStar-compatible configuration file
  357. QWSKEY.DAT, [SHIFT][F1], [SHIFT][F2], and [SHIFT][F3] are used
  358. for "macro_read," "macro_write," and "macro_record,"
  359. respectively.)
  360.  
  361. If your printer escape codes do not match my list (or you prefer
  362. to use different macros, or you do not have my PRINT.MAC file
  363. on disk), you must re-create the macro keys to suit your printer.
  364. Assuming you edited the list in PART II to conform with your own
  365. printer, use it as a reference for creating your macros (PART
  366. IV).
  367.  
  368. You must have QEDIT's "literal" command included in your
  369. configuration file.  In the original QCONFIG.DAT configuration
  370. file, the command line is:
  371.  
  372. ^p   literal
  373.  
  374. (The "literal" command tells QEDIT to literally interpret the
  375. next keystroke. Since you do not want [ESC] to call up QEDIT's
  376. pop-up menus, as it normally does, you must precede [ESC] with a
  377. "literal" command, in order to bypass QEDIT's function for [ESC],
  378. and use it to activate a printer [escape] code instead.)
  379.  
  380. When creating a macro that includes [PGUP]/[PGDN] keys, you must
  381. not be working in a window (that is, you must be in "full screen"
  382. mode).  This is because [PGUP] and [PGDN] take smaller jumps in
  383. windows, than in full screen.
  384.  
  385.  
  386.  
  387.  
  388.  
  389.  
  390.  
  391. PRINTER MACROS FOR QEDIT (cont'd)                         Page 8
  392.  
  393.  
  394.  
  395.  
  396. HOW TO USE MY INSTRUCTIONS:
  397. ..........................
  398.  
  399. PART IV begins the actual macro creations.  I recommend first
  400. editing the list of 15 macros in PART IV before beginning,
  401. according to the following directions:
  402.  
  403. The QEDIT "<macro_record>" command to begin creating a macro, is
  404. the same command used to end the macro.
  405.  
  406. Any text in "less-than"/"greater-than" brackets "<...>" indicates
  407. a QEDIT keystroke or keystroke combination that is user defined.
  408.  
  409. Any text in "left"/"right" square brackets "[...]" indicates a
  410. literal keystroke.  Therefore, "[ESC]" means to literally press
  411. the [ESC] key, [LEFT ARROW]" means to literally press the [LEFT
  412. ARROW] key, and so forth.
  413.  
  414. Any text in "left/right" fancy brackects "{...}" indicates an
  415. instruction to hit the key designated therein, a multiple number
  416. of times as indicated.
  417.  
  418. Characters not in brackets are to be typed just as you see them
  419. (letters are not case sensitive, except any that appear on the
  420. same line as a printer [ESC] code).
  421.  
  422. The steps described to create a macro (in PART IV) are placed on
  423. separate lines in order to break them down into understandable,
  424. digestible units. However, do not, I repeat, do not do the same
  425. thing yourself...for there are absolutely no carriage returns in
  426. any of these macros.  Just treat the steps for creating each
  427. macro as if all the commands for each macro appeared on one line,
  428. without any spaces.
  429.  
  430. To facilitate creation of the macros in PART IV, edit each
  431. macro's step-by-step instruction to conform with your own
  432. customized key configurations.  That is:  replace every
  433. occurrence of "<macro_record>" with your actual "macro_record"
  434. keystroke. Likewise, replace every occurrence of "<literal>" with
  435. your actual "literal" keystroke.  Finally, replace each
  436. occurrence of "<MACRO>" with a macro key of your choice (each
  437. "<MACRO>" must be replaced with a different macro keystroke).
  438.  
  439. IMPORTANT:  Likewise, any changes made to the [ESC] codes listed
  440. in PART II must also be made to the macro creation instructions
  441. in PART IV.
  442.  
  443. Remember to change any of the orginal macro keys in PART IV
  444. (ALT-0 through ALT-9 and ALT -Q,-E,-R,-T,-Y), to match any
  445. changes you may have made in the MACRO list in PART II.
  446.  
  447.  
  448.  
  449.  
  450.  
  451.  
  452.  
  453. PRINTER MACROS FOR QEDIT (cont'd)                         Page 9
  454.  
  455.  
  456.  
  457.  
  458. Once you have customized the macro instructions to your own
  459. preferences, The instructions will be much easier to follow, for
  460. actually creating the Macros.
  461.  
  462. EXAMPLE:
  463. -------
  464.  
  465. The instructions for LETTER QUALITY MODE are:
  466.  
  467. <macro_record>
  468. <MACRO>
  469. <literal>
  470. [ESC]x1
  471. <literal>
  472. [ESC]x0
  473. {hit [LEFT ARROW] 3 times}
  474. <macro_record>
  475.  
  476. Let's pretend that:  my "macro_record" command is "[CTRL]F1", my
  477. <MACRO> assignment is [SHIFT][F1]", my "literal" command is
  478. "[CTRL]L", my printer's [ESC] code to Begin LETTER QUALITY MODE
  479. is "m1", and my printer's [ESC] code to resume DRAFT MODE is
  480. "m0".  Therefore, I would edit the instructions to create a Macro
  481. key for LETTER QUALITY MODE, to look like this:
  482.  
  483. [CTRL][F1]                      (begin macro)
  484. [SHIFT][F1]                     (designate macro)
  485. [CTRL]L                         (interpret next key as "literal")
  486. [ESC]m1                         (hit [ESC], type "m1")
  487. [CTRL]L                         (interpret next key as "literal")
  488. [ESC]m0                         (hit [ESC], type "m0")
  489. {hit [LEFT ARROW] 3 times}      (hit [left arrow] 3 times)
  490. [CTRL][F1]                      (end macro)
  491.  
  492. The three [LEFT ARROW] commands place the cursor between the
  493. "begin" and "end" LETTER QUALITY MODE markers, so, as long as
  494. [insert] is "on", I just go ahead and type.  Once I want LETTER
  495. QUALITY MODE to end, I just move my cursor to the right of the
  496. "end" marker, and resume typing.  The inclusion of [LEFT ARROW]s
  497. in any macro is always to place the cursor in the middle of
  498. "begin" and "end" print code markers.  Notice that the "m" in
  499. both [ESC] codes is lower case.  Printer codes are case
  500. sensitive, so be alert to whether my macro instructions use lower
  501. or upper case [ESC] codes. (Letters not on an [ESC] code command
  502. line can by typed in either lower or upper case, such as the "L"
  503. in the example's "literal" command "[CTRL]L'.)
  504.  
  505. Hopefully, you are now ready to edit the macro creation steps
  506. below. Notation below each macro instruction assists your
  507. editing.
  508.  
  509.  
  510.  
  511.  
  512.  
  513.  
  514.  
  515. PRINTER MACROS FOR QEDIT (cont'd)                         Page 10
  516.  
  517.  
  518.  
  519.  
  520. When you are ready to create the macros, open or create a file in
  521. QEDIT, then follow the steps in PART IV for creating ten printer
  522. code macros.
  523.  
  524. To save your printer macros in a permanent file, follow
  525. instructions in PART V: SAVING YOUR MACROS.
  526.  
  527.  
  528.  
  529.  
  530.  
  531.  
  532.  
  533. PRINTER MACROS FOR QEDIT (cont'd)                         Page 11
  534.  
  535.  
  536.  
  537.  
  538. *****************************************************************
  539.  
  540. PART IV:  EDIT/CREATE YOUR PRINTER MACROS
  541. -----------------------------------------
  542.  
  543. -----------------------------------------------------------------
  544.  
  545. ALT-1:  LETTER QUALITY
  546. ----------------------
  547.  
  548. <macro_record>
  549. <MACRO>
  550. <literal>
  551. [ESC]x1
  552. <literal>
  553. [ESC]x0
  554. {hit [LEFT ARROW] 3 times}
  555. <macro_record>
  556.  
  557. NOTES:  In my printer, LETTER QUALITY is sort of a "heavy" bold.
  558. If your printer does not have a LETTER QUALITY MODE, then use
  559. this macro for NEAR LETTER QUALITY ("NLQ") MODE.
  560.  
  561. LETTER QUALITY MODE is turned "off" by returning to DRAFT MODE,
  562. Which, in my printer, is "[ESC]x0".  Find out your printer's
  563. DRAFT MODE [ESC] code, and replace "x0" with the appropriate
  564. code, if different.  The three [LEFT ARROW] commands place the
  565. cursor between the "begin" and "end" LETTER QUALITY MODE markers,
  566. so, as long as [insert] is "on", you just go ahead and type. Once
  567. you want LETTER QUALITY MODE to end, just move the cursor to the
  568. right of the "end" marker, and resume typing.
  569.  
  570. You may prefer not to have the "end" marker dragging beside your
  571. cursor all the while you type.  In that case, delete the "end"
  572. marker, which is the second half of the code that lies to the
  573. right of your cursor, and looks like: <-x0 ("<-" representing a
  574. tiny left-pointing arrow; "x0" representing whatever your
  575. printer's [ESC] code is for DRAFT MODE..."[ESC]" appears on the
  576. screen as a tiny left-pointing arrow). When you are ready to
  577. "end" LETTER QUALITY, again type the LETTER QUALITY macro, only
  578. this time delete the first half of the code, which is the "begin"
  579. marker, and looks like: <-x1 ("<-" representing a tiny
  580. left-pointing arrow; "x1" representing whatever your printer's
  581. [ESC] code is for LETTER QUALITY).
  582.  
  583.  
  584.  
  585.  
  586.  
  587.  
  588.  
  589. PRINTER MACROS FOR QEDIT (cont'd)                         Page 12
  590.  
  591.  
  592.  
  593.  
  594. -----------------------------------------------------------------
  595.  
  596. ALT-2:  DOUBLE STRIKE
  597. ---------------------
  598.  
  599. <macro_record>
  600. <MACRO>
  601. <literal>
  602. [ESC]G
  603. <literal>
  604. [ESC]H
  605. [LEFT ARROW][LEFT ARROW]
  606. <macro_record>
  607.  
  608. NOTES:  In my printer, DOUBLE STRIKE is sort of a "light" bold.
  609.  
  610. See LETTER QUALITY "NOTES:" above, about the [LEFT ARROW] and
  611. "begin" And "end" markers.
  612.  
  613. -----------------------------------------------------------------
  614.  
  615. ALT-3:  ENHANCED
  616. ----------------
  617.  
  618. <macro_record>
  619. <MACRO>
  620. <literal>
  621. [ESC]E
  622. <literal>
  623. [ESC]F
  624. [LEFT ARROW][LEFT ARROW]
  625. <macro_record>
  626.  
  627. NOTES:  In my printer, ENHANCED is sort of a "medium" bold.
  628.  
  629. See LETTER QUALITY "NOTES:" above, about the [LEFT ARROW] and
  630. "begin" nd "end" markers.
  631.  
  632.  
  633.  
  634.  
  635.  
  636.  
  637.  
  638. PRINTER MACROS FOR QEDIT (cont'd)                         Page 13
  639.  
  640.  
  641.  
  642.  
  643. -----------------------------------------------------------------
  644.  
  645. ALT-4:  ITALICS
  646. ---------------
  647.  
  648. <macro_record>
  649. <MACRO>
  650. <literal>
  651. [ESC]4
  652. <literal>
  653. [ESC]5
  654. [LEFT ARROW][LEFT ARROW]
  655. <macro_record>
  656.  
  657. NOTES:  See LETTER QUALITY "NOTES:" above, about the [LEFT
  658. ARROW] and "begin" nd "end" markers.
  659.  
  660. -----------------------------------------------------------------
  661.  
  662. ALT-5:  UNDERSCORE
  663. ------------------
  664.  
  665. <macro_record>
  666. <MACRO>
  667. <literal>
  668. [ESC]-1
  669. <literal>
  670. [ESC]-0
  671. [LEFT ARROW][LEFT ARROW]
  672. <macro_record>
  673.  
  674. NOTES: The "hyphen" is a literal part of UNDERSCORE's "begin" and
  675. "end" codes.  So don't forget to type the hyphen along with the 1
  676. and 0.
  677.  
  678. On my printer, UNDERSCORE appears too faded in DRAFT MODE.
  679.  
  680. See LETTER QUALITY "NOTES:" above, about the [LEFT ARROW] and
  681. "begin" and "end" markers.
  682.  
  683.  
  684.  
  685.  
  686.  
  687.  
  688.  
  689. PRINTER MACROS FOR QEDIT (cont'd)                         Page 14
  690.  
  691.  
  692.  
  693.  
  694. -----------------------------------------------------------------
  695.  
  696. ALT-6:  SUPERSCRIPT
  697. -------------------
  698.  
  699. <macro_record>
  700. <MACRO>
  701. <literal>
  702. [ESC]S0
  703. <literal>
  704. [ESC]T
  705. [LEFT ARROW][LEFT ARROW]
  706. <macro_record>
  707.  
  708. NOTES:  See LETTER QUALITY "NOTES:" above, about the [LEFT
  709. ARROW] and "begin" and "end" markers.
  710.  
  711. -----------------------------------------------------------------
  712.  
  713. ALT-7:  SUBSCRIPT
  714. -----------------
  715.  
  716. <macro_record>
  717. <MACRO>
  718. <literal>
  719. [ESC]S1
  720. <literal>
  721. [ESC]T
  722. [LEFT ARROW][LEFT ARROW]
  723. <macro_record>
  724.  
  725. NOTES:  See LETTER QUALITY "NOTES:" above, about the [LEFT
  726. ARROW] and "begin" and "end" markers.
  727.  
  728.  
  729.  
  730.  
  731.  
  732.  
  733.  
  734. PRINTER MACROS FOR QEDIT (cont'd)                         Page 15
  735.  
  736.  
  737.  
  738.  
  739. -----------------------------------------------------------------
  740.  
  741. ALT-8:  CENTER JUSTIFICATION
  742. ----------------------------
  743.  
  744. <macro_record>
  745. <MACRO>
  746. <literal>
  747. [ESC]a1
  748. <literal>
  749. [ESC]a0
  750. {hit [LEFT ARROW] 3 times}
  751. <macro_record>
  752.  
  753. NOTES:  CENTER JUSTIFICATION is turned "off" by LEFT
  754. JUSTIFICATION "on" (for my printer that's "[ESC]a0").
  755. (Find out your printer's LEFT JUSTIFICATION [ESC] code, and
  756. replace "a0" with the appropriate code, if different.)
  757.  
  758. LEFT JUSTIFICATION must be placed on the line immediately below
  759. the last line to be centered.
  760.  
  761.  
  762.  
  763.  
  764.  
  765.  
  766.  
  767. PRINTER MACROS FOR QEDIT (cont'd)                         Page 16
  768.  
  769.  
  770.  
  771.  
  772. -----------------------------------------------------------------
  773.  
  774. ALT-9:  FULL JUSTIFICATION
  775. --------------------------
  776.  
  777. <macro_record>
  778. <MACRO>
  779. <literal>
  780. [ESC]a3
  781. <literal>
  782. [ESC]a0
  783. {hit [LEFT ARROW] 3 times}
  784. <macro_record>
  785.  
  786. NOTES:  FULL JUSTIFICATION gives your text an even right, as well
  787. as left, margin, by distributing space between words as evenly as
  788. possible.  This may or may not create an attractive format for
  789. your text.  Like the early word processors, FULL JUSTIFICATION
  790. will not change the text on screen, but just on the printer, as
  791. this is a "printer" command only.
  792.  
  793. FULL JUSTIFICATION is turned "off" by returning to LEFT
  794. JUSTIFICATION, which, for my printer, is [ESC]a0.  Find out your
  795. printer's LEFT JUSTIFICATION [ESC] code, and replace "a0" with
  796. the appropriate code, if different.
  797.  
  798. LEFT JUSTIFICATION must be placed on the line immediately below
  799. the last line to be "full justified".
  800.  
  801. NOTES:  See LETTER QUALITY "NOTES:" above, about the [LEFT ARROW]
  802. and "begin" and "end" markers.
  803.  
  804. -----------------------------------------------------------------
  805.  
  806. ALT-0:  PROPORTIONAL SPACING
  807. ----------------------------
  808.  
  809. <macro_record>
  810. <MACRO>
  811. <literal>
  812. [ESC]p1
  813. <literal>
  814. [ESC]p0
  815. {hit [LEFT ARROW] 3 times}
  816. <macro_record>
  817.  
  818. NOTES:  PROPORTIONAL SPACING adjusts spacing between letters
  819. according to their individual widths, which varies (i.e.:  an "m"
  820. is wider than an "i"). On my printer, it also gives a crisp,
  821. letter quality appearance to the text.
  822.  
  823.  
  824.  
  825.  
  826.  
  827.  
  828.  
  829. PRINTER MACROS FOR QEDIT (cont'd)                         Page 17
  830.  
  831.  
  832.  
  833.  
  834. -----------------------------------------------------------------
  835.  
  836. ALT-Q:  12 CPI
  837. --------------
  838.  
  839. <macro_record>
  840. <MACRO>
  841. <literal>
  842. [ESC]M
  843. <literal>
  844. [ESC]P
  845. [LEFT ARROW][LEFT ARROW]
  846. <macro_record>
  847.  
  848. NOTES:  "12 CPI" stands for "twelve characters per inch," which
  849. is a typewriter's "elite" mode.  ("Pica" is "10 CPI.")  12 CPI
  850. turns "off" by returning to 10 CPI which, in my printer, is
  851. [ESC]P.
  852.  
  853. NOTES:  See LETTER QUALITY "NOTES:" above, about the [LEFT
  854. ARROW] and "begin" and "end" markers.
  855.  
  856. HOW TO IMBED 10 CPI: Use your "12 CPI" macro, without any
  857. text between the "begin" and "end" codes...or by deleting
  858. the first half of the "12 CPI" print code.  (The "end" code
  859. really means "return to 10 cpi").
  860.  
  861.  
  862.  
  863.  
  864.  
  865.  
  866.  
  867. PRINTER MACROS FOR QEDIT (cont'd)                         Page 18
  868.  
  869.  
  870.  
  871.  
  872. ------------------------------------------------------------
  873.  
  874. ALT-E:  SKIP OVER PERFORATION
  875. -----------------------------
  876.  
  877. <macro_record>
  878. <MACRO>
  879. <literal>
  880. [ESC]Nn                    <---- replace "n" with the number
  881. <literal>                        of lines you want to skip
  882. [ESC]O
  883. [LEFT ARROW][LEFT ARROW]
  884. <unmark_block>
  885. <drop_anchor>
  886. [RIGHT ARROW]
  887. <drop_anchor>
  888. [LEFT ARROW]
  889. <macro_record>
  890.  
  891. NOTES:  The lowercase "n" in "[ESC]Nn" is to be replaced with the
  892. number of lines you want the printer to skip over the perforation
  893. between form feed pages.  (Example:  If I want the printer to
  894. skip 3 lines, I'd replace "n" with "3" like so:  "[ESC]N3".)
  895.  
  896. The "O" in "[ESC]O" is an uppercase "O", not a zero.
  897.  
  898. "[ESC]O" is the "end skip perforation" command, and should
  899. be moved to the end of your text file...or before another
  900. section of text, if you decide to vary "skip perforation"
  901. codes in the same document.  For this reason, the macro
  902. "block highlights" the "end" code to alert you.
  903.  
  904. My "skip over perforation" macro (ALT-E), in PRINT.MAC, is set
  905. at "0"...so change the code if you want the printer to skip a
  906. line (number of lines determined by the number you insert...not
  907. to be greater than the current page length).
  908.  
  909. The "skip over perforation" macro allows you to adjust, in
  910. text, how many line spaces you want the printer to skip over
  911. the perforations in continuous form feed paper.  The printer
  912. will skip the number of lines you indicated, before and
  913. after each perforation.  This is one way to set top and
  914. bottom margins--but thwarts your ability to insert headers
  915. and footers outside the text body.  (My article,
  916. QFORMAT.ART, gives you an alternative to setting margins
  917. that allows for headers/footers.)
  918.  
  919.  
  920.  
  921.  
  922.  
  923.  
  924.  
  925. PRINTER MACROS FOR QEDIT (cont'd)                         Page 19
  926.  
  927.  
  928.  
  929.  
  930. ------------------------------------------------------------
  931.  
  932. ALT-R:  PRINTER CARRIAGE RETURN
  933.  
  934. <macro_record>
  935. <MACRO>
  936. <unmark_block>
  937. <literal>
  938. [CTRL]M
  939. <literal>
  940. [CTRL]J
  941. [LEFT ARROW][LEFT ARROW]
  942. <drop_anchor>
  943. [RIGHT ARROW]
  944. <drop_anchor>
  945. <print_block>
  946. <unmark_block>
  947. [LEFT ARROW]
  948. [DELETE][DELETE]
  949. <macro_record>
  950.  
  951. The "printer carriage return" macro does not affect text...but
  952. sends a carriage return/linefeed to the printer, making the paper
  953. move up 4 lines (2/3 inch).  (It should move up only 1 line,
  954. since there is only 1 carriage return/linefeed in the macro...but
  955. this is how my printer responds.)
  956.  
  957. Before executing this macro, cursor must be on a blank line, or
  958. QEDIT will print out any characters on that line.
  959.  
  960.  
  961.  
  962.  
  963.  
  964.  
  965.  
  966. PRINTER MACROS FOR QEDIT (cont'd)                         Page 20
  967.  
  968.  
  969.  
  970.  
  971. ------------------------------------------------------------
  972.  
  973. ALT-T:  PRINTER PAGE EJECT
  974. --------------------------
  975.  
  976. <macro_record>
  977. <MACRO>
  978. <unmark_block>
  979. <literal>
  980. [CTRL]L
  981. [LEFT ARROW]
  982. <drop_anchor><drop_anchor>
  983. <print_block>
  984. <unmark_block>
  985. [DELETE]
  986. <macro_record>
  987.  
  988. The "printer page eject" macro does not affect
  989. text...but sends a form feed to the printer, ejecting the
  990. current printer page to the beginning of the next.
  991.  
  992. Before executing this macro, cursor must be on a blank line,
  993. or QEDIT will print out any characters on that line.
  994.  
  995. ------------------------------------------------------------
  996.  
  997. ALT-Y:  INPUT FORM FEED
  998. -----------------------
  999.  
  1000. <macro_record>
  1001. <MACRO>
  1002. <literal>
  1003. [CTRL]L
  1004. <macro_record>
  1005.  
  1006. "Input form feed" macro gives you a plain vanilla "page
  1007. break" without any of the fancy top/bottom margin formatting
  1008. provided by the "page break" macros.
  1009.  
  1010. ------------------------------------------------------------
  1011.  
  1012.  
  1013.  
  1014.  
  1015.  
  1016.  
  1017.  
  1018. PRINTER MACROS FOR QEDIT (cont'd)                         Page 21
  1019.  
  1020.  
  1021.  
  1022.  
  1023. ******************************************************************
  1024.  
  1025. PART V:  SAVING YOUR MACROS
  1026. ---------------------------
  1027.  
  1028. Now that you've gone through all this, you certainly don't want
  1029. to lose these macros so painstakingly created.  At this moment,
  1030. should your computer's power source cease (through a power
  1031. failure, inadvertantly pressing the reset or "off" button,
  1032. tripping over the power cord, RAM lockup, or whatever), you will
  1033. indeed lose them.
  1034.  
  1035. To save your printer macros to disk, use QEDIT's "macro_write"
  1036. command...whatever you have configured it to be (I use
  1037. "[CTRL]MS").  You can name the macro file anything you want, but
  1038. it's advisable to save all macro files with the extension ".MAC"
  1039. or ".KEY" for easy identification.  May I suggest naming your
  1040. print-code macro file PRINT.MAC?
  1041.  
  1042.  
  1043.  
  1044.  
  1045.  
  1046.  
  1047.  
  1048. PRINTER MACROS FOR QEDIT (cont'd)                         Page 22
  1049.  
  1050.  
  1051.  
  1052.  
  1053. *****************************************************************
  1054.  
  1055. PART VI:  FINAL REMARKS
  1056. -----------------------
  1057.  
  1058. Printer macros should always be executed with [insert] "on".
  1059.  
  1060. You can, of course, combine two or more printer commands.  For
  1061. example, if you want to combine the two modes ITALICS and LETTER
  1062. QUALITY, just call up those two macros and begin typing!  Make
  1063. sure you move the cursor to the right of the "end" codes, when
  1064. you want to turn "off" these features.  Some print codes cannot
  1065. be combined...such combinations will either be ignored or "lock
  1066. up" the printer.  All codes in this article can be combined,
  1067. except PROPORTIONAL SPACING, which ignores 12 CPI. Your printer
  1068. manual should alert you to print code incompatibilities, for any
  1069. new codes you want to include.
  1070.  
  1071. It would indeed be surprising if your printer does not have the
  1072. capability to use all the codes listed in PART II, as even
  1073. low-cost printers these days have an extraordinary number of
  1074. features.  (There is, perhaps, the possiblity that your printer
  1075. does not support super- and sub- script.)
  1076.  
  1077. Having gone this far (and that's quite a bit!), you may want to
  1078. incorporate additional print codes, such as 15 CPI,  8 LPI (lines
  1079. per inch), PAGE LENGTH, RIGHT JUSTIFICATION, ELONGATED PRINTING,
  1080. and CONDENSED PRINTING. Should you do this, you may also need to
  1081. learn commands like "default initializer," which clears all (with
  1082. some exceptions) previous, non-default print commands, and other,
  1083. more subtle, commands.  However, the 15 printer commands
  1084. described herein are the ones most used in most cases, and,
  1085. should you want further printer capabilities, then it is perhaps
  1086. time to convert to a dedicated word processing program.
  1087.  
  1088. As you peruse your printer's manual, you may discover an
  1089. incredible number of capabilities (such as language character
  1090. sets and dot matrixes)...but these are only for someone who is
  1091. creating a sophisticated word processing or graphics
  1092. program...not for someone who is using them.
  1093.  
  1094.  
  1095.  
  1096.